package com.ruoyi.project.kbjz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class KbjzPatient extends BaseEntity {
    //患者编号
    private String patientId;
    //身份证号
    private String patientCard;
    //患者姓名
    private String patientName;
    //患者电话
    private String patientPhone;
    //患者性别 0：未知，1：女 2：男
    private Integer patientSex;
    //出生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date patientBirthday;
    //患者年龄
    private Integer patientAge;
    //过敏史
    private String patientAllergy;
    //信息状态，0：未完善，1：已完善
    private Integer patientInfoStatus;
    //住址信息
    private String patientAddress;
    //创建时间
    //private LocalDateTime createTime;
}
